package inline;

import android.content.res.Resources;

public class ResourcesDemo {
    public static int dp2px(float dp) {
        return ((int) (Resources.getSystem().getDisplayMetrics().density * dp + 0.5f));
    }
}
